﻿using System;
using System.Collections.Generic;
using System.Globalization;
using System.Windows.Data;
using System.Windows.Input;
using System.Windows.Media.Animation;
using ZOIL.DataModel;
using ZOIL.Framework.Presentation;

namespace Sample.PhotoBrowser.Components
{
    /// <summary>
    /// Interaction logic for FlickrPhotoView.xaml
    /// </summary>
    [ViewFor(typeof(FlickrPhoto), "default")]
    public partial class FlickrPhotoView
    {
        public FlickrPhotoView()
        {
            InitializeComponent();
        }

        private void OnMouseDown(object sender, InputEventArgs e)
        {
            if (IsComponentInteractionEnabled)
                ((Storyboard)FindResource("HideShadowStoryboard")).Begin();
        }

        private void OnMouseUp(object sender, InputEventArgs e)
        {
            if (IsComponentInteractionEnabled)
                ((Storyboard)FindResource("ShowShadowStoryboard")).Begin();
        }
    }
}
